﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernateDemo.DAL" namespace="NHibernateDemo.DAL.Entity">
    <class name="Category" table ="category" >
        <id name="CategoryId" column="CategoryId" type="string" length="10" unsaved-value="null" >
            <generator class="assigned" ></generator>
        </id>
        <property name="Name" type="string" column="Name"></property>
        <set name="Funds" table="FundBasic" generic="true" inverse="true" cascade="all"  >
            <key column="CategoryId"></key>
            <one-to-many class="FundBasic" />
        </set>
    </class>
</hibernate-mapping>